//don't forget to add <body ondblclick="dictionary()">
function dictionary() {
if (navigator.appName!='Microsoft Internet Explorer') {
	var t = document.getSelection();
	od(t);
	}
else {
	var t = document.selection.createRange();
	if(document.selection.type == 'Text' && t.text>'') {
		// document.selection.empty();
		od(t.text);}
   }
function od(t) {
while (t.substr(t.length-1,1)==' ') 
	t=t.substr(0,t.length-1)
while (t.substr(0,1)==' ') 
	t=t.substr(1)
if (t) 
    document.location.href="?word="+encodeURIComponent(t)+"&dikt="+ document.forms[0].elements["dikt"].value;
}   
}
status='double-click a word to get its definition...'
document.ondblclick=dictionary //works for IE only. For NS add <body ondblclick="dictionary()">
